.aiAvatar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.aiAvatar:hover {
  cursor: pointer;
}

.wechatIcon {
  z-index: 2;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.avatarShadow {
  position: absolute;
  bottom: -25px;
  width: 140px;
  height: 25px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: shadowFloat 3s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-35px);
  }
}

@keyframes shadowFloat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(0.6);
    opacity: 0.25;
  }
}

/* 眨眼动画（仅用于normal表情） */
.leftEye, .rightEye {
  animation: blink 4s ease-in-out infinite;
}

.rightEye {
  animation-delay: 0.1s;
}

@keyframes blink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

/* 摇晃动画 */
.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

/* 不同尺寸的阴影适配 */
.aiAvatar[data-size="120"] .avatarShadow {
  width: 100px;
  height: 20px;
  bottom: -20px;
}

.aiAvatar[data-size="240"] .avatarShadow {
  width: 180px;
  height: 30px;
  bottom: -30px;
}
